<template>
  <div class="box">
  <div class="user-chenter">
  <div class="center-img">
    <img src="./item.jpg" alt="">
    <div class="detele">X</div>
  </div>
  <div class="center-touX">
    <div class="touX_i">
    <div class="toux">
      <img src="./tims.jpg" alt="">
      <span>QiuQ</span>
      <i @click="islogin">退出登陆</i>
    </div>
    <div class="touxx">
    <van-icon name="chat-o" color="#009966" size="20"/>
    </div>
    </div>
    <div class="touX_ii">
      <div class="tux">
        <h1><van-icon name="gem" color="#009966"/>  会员中心</h1>
        <p>送186天VIP ></p>
      </div>
      <div class="tuxi">
        <h1><van-icon name="gift" color="#009966"/>  活动中心</h1>
        <p>每日签到有绿砖</p>
      </div>
    </div>
  </div>
  <div class="user-teicon">
    <ul class="dis">
      <li>
        <div class="img">
           <i><van-icon name="like" color="#009966" size="23"/></i>
        </div>
        <h3>喜欢</h3>
        <span>0</span>
      </li>
      <li>
        <div class="img">
          <i><van-icon name="clock" color="#009966" size="23"/></i>
        </div>
        <h3>最近</h3>
        <span>0</span>
      </li>
      <li>
        <div class="img">
          <i><van-icon name="fire" color="rgb(255, 68, 0)" size="23"/></i>
        </div>
        <h3>下载</h3>
        <span>0</span>
      </li>
      <li>
        <div class="img">
         <van-icon name="wechat" color="#009966" size="23"/>
        </div>
        <h3>已购</h3>
          <span>0</span>
      </li>
    </ul>
  </div>
  </div>
  </div>
</template>

<script>
import { getSource } from '@/api'
import Vue from 'vue'
import { Icon } from 'vant'

Vue.use(Icon)
export default {
  name: '',
  data () {
    return {
    }
  },
  created () {
    getSource().then(res => {
      console.log('res', res)
    })
  },
  methods: {
    islogin () {
      localStorage.removeItem('loginState')
      this.$router.replace('/login')
    }
  }
}
</script>

<style lang="scss" scoped>
.box{
  background: #222;
  .user-chenter{
    padding: 0 0.1rem;
    margin-top: 0.53rem;
    .center-img{
      height: 1rem;
      position: relative;
      img{
        height: 1rem;
        width: 100%;
      }
      .detele{
        color: #fff;
        position: absolute;
        top: 1px;
        right: 7px;
      }
    }
    .center-touX{
      margin-top: 0.1rem;
      background: rgba(173, 171, 171, 0.123);
      height: 1.4rem;
      .touX_i{
        padding:0 0.3rem ;
        display: flex;
        justify-content: space-between;
        height: 0.7rem;
        position: relative;
        .toux{
          span{
            color: #ffcd32;
            position: absolute;
            top: 0.1rem;
            text-indent: 10px;
          }
          i {
            color: #ccc;
            font-size: 0.1rem;
            position: absolute;
            bottom: 0.1rem;
            text-indent: 10px;
          }
          img{
            margin-top: 0.1rem;
            border-radius: 50%;
            overflow: hidden;
            width: 0.5rem;
          }
        }
        .touxx{
          margin-top: 0.1rem;
        }
      }
      .touX_ii{
        display: flex;
        height: 0.7rem;
        border-top: 0.1px solid rgba(238, 238, 238, 0.199);
        .tux{
          width: 50%;
          height: 100%;
          border-right: 1px solid  rgba(238, 238, 238, 0.199);
          h1{
            margin-top: 0.1rem;
            text-align: center;
            color: #009966;
            font-size: 0.1rem;
          }
          p{
            font-size: 0.12rem;
            color: rgba(238, 238, 238, 0.24);
            text-align: center;
            margin-top: 0.1rem;
          }
        }
        .tuxi{
          width: 50%;
          height: 100%;
          h1{
            margin-top: 0.1rem;
            text-align: center;
             color: #009966;
             font-size: 0.1rem;
          }
          p{
            font-size: 0.12rem;
            color: rgba(238, 238, 238, 0.24);
            text-align: center;
            margin-top: 0.1rem;
          }
        }
      }
    }
    .user-teicon{
      width: 100%;
      .dis{
        margin-top: 0.2rem;
        display: flex;
        justify-content: space-between;
        align-content: center;
        li{
          flex: 1;
          display: flex;
          flex-direction: column;
          text-align: center;
          h3{
            font-size: 0.1rem;
            font-weight:initial;
            color: rgba(238, 238, 238, 0.623);
          }
          span{
            color: rgba(238, 238, 238, 0.288);
          }
        }
      }
    }
  }
}
</style>
